package com.ge.modules.sys.service.impl;

import com.ge.modules.dao.TbRationDao;
import com.ge.modules.entity.TbRationEntity;
import com.ge.modules.sys.service.SysRationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class SysRationServiceImpl implements SysRationService {
	@Autowired
	private TbRationDao tbRationDao;
	
	@Override
	public TbRationEntity queryObject(Integer id){
		return tbRationDao.queryObject(id);
	}
	
	@Override
	public List<TbRationEntity> queryList(Map<String, Object> map){
		return tbRationDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tbRationDao.queryTotal(map);
	}
	
	@Override
	public void save(TbRationEntity ration){
		tbRationDao.save(ration);
	}
	
	@Override
	public void update(TbRationEntity ration){
		tbRationDao.update(ration);
	}
	
	@Override
	public void delete(Integer id){
		tbRationDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		tbRationDao.deleteBatch(ids);
	}
	
}
